package llm

import (
	"net/http"

	"paper-pro/app/assistant/api/internal/logic/llm"
	"paper-pro/app/assistant/api/internal/svc"
	"paper-pro/pkg/result"
)

// list assistant support llm
func ListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := llm.NewListLogic(r.Context(), svcCtx)
		resp, err := l.List()
		result.HttpResult(r, w, resp, err)
	}
}
